package com.zb.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 厂商工单扣款账单表，与工单一对一
 * </p>
 *
 * @author WEN
 * @since 2024-04-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ZjFactoryOrderDeductionBill对象", description="厂商工单扣款账单表，与工单一对一")
public class ZjFactoryOrderDeductionBill implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主健ID/工单ID")
    private Long id;

    @ApiModelProperty(value = "商家平台ID")
    private Long custAccId;

    @ApiModelProperty(value = "厂商ID")
    private Long factoryId;

    @ApiModelProperty(value = "工单单号")
    private String workNo;

    @ApiModelProperty(value = "流水号")
    private String code;

    @ApiModelProperty(value = "扣款状态：1-扣款完成，2-扣款失败")
    private Integer status;

    @ApiModelProperty(value = "工单总金额")
    private BigDecimal orderTotalPrice;

    @ApiModelProperty(value = "扣款总金额")
    private BigDecimal deductionTotalPrice;

    @ApiModelProperty(value = "待付款总金额")
    private BigDecimal waitPaymentTotalPrice;

    @ApiModelProperty(value = "账单月份")
    private Date billTime;

    @ApiModelProperty(value = "扣款时间")
    private Date deductionTime;

    @ApiModelProperty(value = "结算类型：1-预充值，2-月结")
    private Integer settlementType;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtUpdate;


}
